package jack.com.servicekeep.service;

public class AccessibilityData {
    public enum SearchType{SearchById, SearchByText};
    public enum ActionType{Click, LongClick, Back, Home}
    private SearchType searchType;  // 0: 通过id查找，1: 通过文字查找
    private String searchReg;
    private String searchContent;
    private ActionType actionType;

    public AccessibilityData(String searchContent, ActionType actionType) {
        this.searchContent = searchContent;
        this.actionType = actionType;
    }

    public AccessibilityData(String searchReg, String searchContent, ActionType actionType) {
        this.searchReg = searchReg;
        this.searchContent = searchContent;
        this.actionType = actionType;
    }

    public AccessibilityData(SearchType searchType, String searchReg, String searchContent, ActionType actionType) {
        this.searchType = searchType;
        this.searchReg = searchReg;
        this.searchContent = searchContent;
        this.actionType = actionType;
    }

    public SearchType getSearchType() {
        return searchType;
    }

    public void setSearchType(SearchType searchType) {
        this.searchType = searchType;
    }

    public String getSearchReg() {
        return searchReg;
    }

    public void setSearchReg(String searchReg) {
        this.searchReg = searchReg;
    }

    public String getSearchContent() {
        return searchContent;
    }

    public void setSearchContent(String searchContent) {
        this.searchContent = searchContent;
    }

    public ActionType getActionType() {
        return actionType;
    }

    public void setActionType(ActionType actionType) {
        this.actionType = actionType;
    }

    public String toString(){
        return actionType + searchContent;
    }
}
